
// 商品信息1 - 路由
"use strict";

module.exports = app => {
  const { router, controller } = app;
  router.get("/tube/admin/queryProducts", controller.cProducts.pc_c_query);
  router.post("/tube/admin/createProducts", controller.cProducts.pc_c_create);
  router.put("/tube/admin/updateProducts", controller.cProducts.pc_c_update);
  router.delete("/tube/admin/deleteProducts", controller.cProducts.pc_c_delete);

  //首页搜索
  router.get('/tube/wa/searchProducts', controller.cProducts.wa_c_search_products);
  //商品详情
  router.get('/tube/wa/detailProduct', controller.cProducts.wa_c_detail);

};
